Auto merge of #1828 - fhahn:multiple-package-parameters, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 30 Sep 2015 23:26:50 +0000 (23:26 +0000)
committerbors <bors@rust-lang.org>
Wed, 30 Sep 2015 23:26:50 +0000 (23:26 +0000)
commit7931e58cf82d8b9d7d1f1cc9d631166fc8f8d202
treef1ac5dc65af5b0afa12ac7b3818726f7390d9f71
parentec9398ee9f6aeadd1ebd99aa59da0f927dd52117
parentd9615d70f311ad80fba943fbb5c3df477786d9c9
Auto merge of #1828 - fhahn:multiple-package-parameters, r=alexcrichton

This PR for #1528 is still pretty rough (and so far only added multiple package support for tests), but I wanted to make sure the overall approach is fine.

I have made some progress and cargo is now able to compile and execute tests for multiple packages.

In order to execute the doc tests for multiple packages as well, I added `to_doc_test` to `Compilation` (used [here](https://github.com/fhahn/cargo/commit/8b8df3e8d5abfa638852f55730d2f3cb4eec66bc#diff-417e085367d0ce027505dfaa26a089d3R33)). Previously it only executed the doc tests for `Compilation.package`. Another option would be to change `Compilation.package` to be a `Vec<Package>`, because in order to execute the tests of multiple packages, multiple packages are compiled as "top level package". But this would require a changes at a couple of other places.